Comparator device, portable photorefraction device